Skip to content

Allow environment variables and extra args to be passed to pip.#101

Closed
Globegitter wants to merge 1 commit intobazel-contrib:masterfrom
ecosia:env-extra-args
Closed

Allow environment variables and extra args to be passed to pip.#101
Globegitter wants to merge 1 commit intobazel-contrib:masterfrom
ecosia:env-extra-args

Conversation

@Globegitter
Copy link
Copy Markdown

@Globegitter Globegitter commented May 23, 2018

This should fix #74 but was really motivated by the fact that I wanted to install https://github.com/uploadcare/pillow-simd with the cc -mavx2 option reliably. So I needed the option to pass in environment variables that get propagated to pip and I further ran into this issue: uploadcare/pillow-simd#26 so also needed to be able to pass in custom arguments.

So an example would be:

pip_import(
   name = "py_deps",
   requirements = "//:requirements.txt",
   environment = {
       "CC": "cc -maxv2",
   },
   extra_args = ["--no-binary", "pillow-simd"],
)


def main():
args = parser.parse_args()
args, unkwown = parser.parse_known_args()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: unknown

@dsully
Copy link
Copy Markdown

dsully commented Jan 14, 2019

Any progress here? Would love to see this committed to the repo. Thanks.

@prebeta
Copy link
Copy Markdown

prebeta commented May 7, 2019

I would also like to see this committed as well.

@georgegiovanni
Copy link
Copy Markdown

bump

1 similar comment
@ajgokhale
Copy link
Copy Markdown

bump

@github-actions
Copy link
Copy Markdown

This Pull Request has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days.
Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

@github-actions github-actions bot added the Can Close? Will close in 30 days if there is no new activity label Apr 14, 2021
@github-actions
Copy link
Copy Markdown

This PR was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"

@github-actions github-actions bot closed this May 14, 2021
@xhuoroku
Copy link
Copy Markdown

xhuoroku commented Jul 1, 2021

Any update?

@thundergolfer
Copy link
Copy Markdown

@xhuoroku look pip_install which has this functionality. pip_import is deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Can Close? Will close in 30 days if there is no new activity cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for pip --index-url, --extra-index-url, --find-links

10 participants